# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at# 
# http://www.apache.org/licenses/LICENSE-2.0# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

<%# METHOD_COUNT = panda_file::MAX_INDEX_16 %>
% METHOD_COUNT = 65535

.record R1 {
    i32 f <static>
}

.function void R1.cctor() <cctor> {
    ldai 10
    ststatic R1.f
    return.void
}

.function i32 R1.get() {
    ldstatic R1.f
    return
}

% for i in 1..METHOD_COUNT do
.function void R1.f<%=i%>() {
    call R1.f<%=i%>
    return.void
}
% end

.record R2 {
    i32 f <static>
}

.function void R2.cctor() <cctor> {
    ldai 20
    ststatic R2.f
    return.void
}

.function i32 R2.get() {
    ldstatic R2.f
    return
}

% for i in 1..METHOD_COUNT do
.function void R2.f<%=i%>() {
    call R2.f<%=i%>
    return.void
}
% end